# Maintainer: Ronald van Haren <ronald@archlinux.org>
# Contributor: Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>

pkgname=libpgf
pkgver=7.15.32
pkgrel=1
pkgdesc="An implementation of the Progressive Graphics File (PGF)"
arch=('x86_64')
url="http://www.libpgf.org"
depends=('gcc-libs')
makedepends=('dos2unix')
license=('GPL')
source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}-latest/libPGF-codec-and-console-src.zip")
sha1sums=('ff47afbc8c39c4719aa9fe988da6edb06e022f71')

build() {
  cd "${srcdir}/PGF/Codec"
  dos2unix configure.ac
  sh ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/PGF/Codec"
  make DESTDIR=${pkgdir} install
}
